<?php
/**
 * Template name: 网站公告页面
 */

get_header();
//网站公告CSS
wp_enqueue_style('notice', trailingslashit(get_stylesheet_directory_uri()) . 'assets/css/pages/notice.css?van_ver=' . VAN_VER);
$notice_set = _van('notice_set');
?>
<?php if ( _van('notice_head_set') == true): ?>
<section class="yfx-page-bg yfx-inline yfx-overflow-hidden yfx-flex yfx-flex-middle yfx-flex-center yfx-cat-category">
    
    <img src="<?php echo _van('notice_head_bg'); ?>">
    
	<div class="yfx-overlay-primary yfx-position-cover"></div>
	<div class="yfx-overlay yfx-position-center yfx-text-center yfx-light">
		<h3 class="yfx-position-relative yfx-light yfx-margin-remove"><?php the_title(); ?></h3>
		<?php echo _van('notice_head_title'); ?>
	</div>
</section>
<?php endif; ?>
<div class="yfx-container" id="page-content">
    <div id="gonggao_content">
        <ul class="van-cbp-tmtimeline">
            <?php
                if ($notice_set) {
                    foreach ( $notice_set as $key => $value) {
                ?>
            <li class="van-gonggao-li">
                <h2 class="van-gonggao-title"><?php echo $value['notice_title']; ?></h2>
                <div class="van-gonggao-about">
                    <span class="van-gonggao-Btn"><i class="iconfont icon-vip"></i><?php bloginfo('name'); ?></span>
                    <?php echo $value['notice_time']; ?></div>
                <div class="van-gonggao-entry-content">
                    <blockquote><p><?php echo $value['notice_content']; ?></p>
</blockquote>
                </div>
                            </li>
            <?php } } ?>
        </ul>
    </div>
</div>

<?php get_footer();?>